package IO流.字符流.FileWriter.Test01;

import java.io.FileWriter;
import java.io.IOException;

public class FileWriterTest01 {
    public static void main(String[] args) {
        FileWriter out = null;
        try {
            out = new FileWriter("javase/src/IO流/myFile2");
            char[] chars = {'第','三','炸','弹',',','败','者','食','尘'};
            out.write(chars);
            out.write("\n砸哇鲁多！！");
            out.flush();
        } catch (IOException e) {
            e.printStackTrace();
        }finally {
            if (out != null) {
                try {
                    out.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
    }
}
